package com.kkb.kkbportal.domain.vo;

import com.kkb.kkbportal.domain.dto.UserDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DetailBaseInfoVo {


    // 基本信息

    @ApiModelProperty(value = "用户基本信息")
    private UserDto userDto;

    // 用户排名

    @ApiModelProperty(value = "用户的排名")
    private Integer ranking;

    // 需要mysql联表查询的信息

    @ApiModelProperty(value = "获得的综合评价列表: 甲方评价、学员评价")
    private List<DetailAvgStarVo> avgStarList;

    @ApiModelProperty(value = "已完成的项目数")
    private Integer completedProjectCount;

    public DetailBaseInfoVo(UserDto userDto, List<DetailAvgStarVo> avgStarList, Integer completedProjectCount) {
        this.userDto = userDto;
        this.avgStarList = avgStarList;
        this.completedProjectCount = completedProjectCount;
    }
}
